package ${techspec.packageName};

import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.WebApplication;

/**
 * Application object for your web application. If you want to run this 
 * application without deploying, run the Start class.
 * 
 * @see ${techspec.packageName}.Start#main(String[])
 */
public class WicketApplication extends WebApplication
{    
    /**
     * Constructor
     */
	public WicketApplication() {
#foreach ($page in $appspec.pages)
		mountBookmarkablePage("/${page.id}", ${page.name}.class);
#end
	}
#foreach ($page in $appspec.pages)

	/**
	 * @see org.apache.wicket.Application#get${page.name}()
	 */
	public Class<${page.name}> get${page.name}() {
		return ${page.name}.class;
	}
#end

	@Override
	public Class<? extends Page> getHomePage() {
		return ${appspec.defaultPage.name}.class;
	}
}